Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix file filter bug and add more telemetry data #65

Merged
merged 6 commits into from
Jun 21, 2024

Conversation

wuhaixian1984
Copy link
Contributor

  1. Fix file filter bug:
    There're many 'invalid/unused' members inside a group, so use all group members count to do cid % operation will filter most files out, and it would also increase the probability during the probabilityFilter.
    So enhance the code to filter out invalid group members.
  2. Use queryMulti to retrieve work reports from chain in a batch mode to speed up the node-info-updater-task, which reduce the whole indexing time from ~100 minutes to ~5 minutes.
  3. Shorten the node-info-updater-task update interval from 1 hour to 30 minutes, since node-info-updater-task is pretty quick right now after refactor
  4. Add more telemtry data:
    • sworker enclave id_info data
    • some os info statistics

There're many 'invalid/unused' members inside a group, so use  all group members count to do cid % operation will filter most files out.
Also it will increase the probability during the probabilityFilter.
So enhance the code to filter out invalid group members
After we change to use batch mode, the time cost to retrieve all work reports from chain
has been reduced from ~100 minutes to ~5 minutes, so we can shorten the updateInterval
update group info every 30 minutes
@wuhaixian1984 wuhaixian1984 merged commit b1eacff into mainnet Jun 21, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant